Skip to content

Map properties to contact fields with ##contact - #507

Open
andrewaylett wants to merge 1 commit into
mainfrom
claude/hopeful-gates-6pytdj
Open

andrewaylett wants to merge 1 commit into
mainfrom
claude/hopeful-gates-6pytdj

Conversation

@andrewaylett

@andrewaylett andrewaylett commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

First of a stack that shows entities in Android's contacts.

A property's entity says which field of a contact its values fill: ##contact(phone:mobile) on mobile. The field is one of a fixed few (phone, email, address, organisation, job-title, nickname, website, birthday, note) and the label after the colon is free. An entity with a value for a mapped property will be a contact; there is no type to say it is a person.

This only reads the mapping into the schema, lists the mapped properties on the index (Index::contact_keys) and flags a line it can't read. Nothing uses it yet; the new Contacts docs page says so.

The stack: this, then #508 (the contacts crate) and #509 (reconcile), with the Android side to follow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01URxBNGtnCj5RibKerde9WL

A phone's contacts have fields (phone numbers, emails, addresses and so
on), and Quiddity's properties are free text, so something has to say
which property fills which field. Following the other meta-properties,
a property's entity says it: `##contact(phone:mobile)` on `mobile` makes
its values mobile phone numbers. The field is one of a fixed few, and
the label after the colon is free.

Nothing uses the mapping yet. This reads it into the schema, lists the
mapped properties on the index, and flags a line it can't read; the
contacts themselves come in the commits stacked on this one.

Journal:
- Added `##contact(field:label)`, which says which field of a contact a property fills. [[Contacts]] [[Built-in properties]]
	- It is the first step towards showing entities in Android's contacts: only the mapping is read so far, and [[Contacts]] says so.
	- Any entity with a value for a mapped property will be a contact, with no type to say it is a person, so the mapping is all a graph has to write.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01URxBNGtnCj5RibKerde9WL
@andrewaylett
andrewaylett force-pushed the claude/hopeful-gates-6pytdj branch from 7771958 to 6a4b1de Compare November 22, 2026 01:01
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants